package com.dykj.entity;

import java.io.Serializable;

/**
 * supplierbasicinfo
 * @author 
 */
public class Supplierbasicinfo implements Serializable {
    private Integer fregionid;

    private String fcountry;

    private Integer fsupplygrade;

    private String fsupplyname;

    private Integer fsupplyid;

    private String fregionname;

    private String fsupplygradename;

    private static final long serialVersionUID = 1L;

    public Integer getFregionid() {
        return fregionid;
    }

    public void setFregionid(Integer fregionid) {
        this.fregionid = fregionid;
    }

    public String getFcountry() {
        return fcountry;
    }

    public void setFcountry(String fcountry) {
        this.fcountry = fcountry;
    }

    public Integer getFsupplygrade() {
        return fsupplygrade;
    }

    public void setFsupplygrade(Integer fsupplygrade) {
        this.fsupplygrade = fsupplygrade;
    }

    public String getFsupplyname() {
        return fsupplyname;
    }

    public void setFsupplyname(String fsupplyname) {
        this.fsupplyname = fsupplyname;
    }

    public Integer getFsupplyid() {
        return fsupplyid;
    }

    public void setFsupplyid(Integer fsupplyid) {
        this.fsupplyid = fsupplyid;
    }

    public String getFregionname() {
        return fregionname;
    }

    public void setFregionname(String fregionname) {
        this.fregionname = fregionname;
    }

    public String getFsupplygradename() {
        return fsupplygradename;
    }

    public void setFsupplygradename(String fsupplygradename) {
        this.fsupplygradename = fsupplygradename;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Supplierbasicinfo other = (Supplierbasicinfo) that;
        return (this.getFregionid() == null ? other.getFregionid() == null : this.getFregionid().equals(other.getFregionid()))
                && (this.getFcountry() == null ? other.getFcountry() == null : this.getFcountry().equals(other.getFcountry()))
                && (this.getFsupplygrade() == null ? other.getFsupplygrade() == null : this.getFsupplygrade().equals(other.getFsupplygrade()))
                && (this.getFsupplyname() == null ? other.getFsupplyname() == null : this.getFsupplyname().equals(other.getFsupplyname()))
                && (this.getFsupplyid() == null ? other.getFsupplyid() == null : this.getFsupplyid().equals(other.getFsupplyid()))
                && (this.getFregionname() == null ? other.getFregionname() == null : this.getFregionname().equals(other.getFregionname()))
                && (this.getFsupplygradename() == null ? other.getFsupplygradename() == null : this.getFsupplygradename().equals(other.getFsupplygradename()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getFregionid() == null) ? 0 : getFregionid().hashCode());
        result = prime * result + ((getFcountry() == null) ? 0 : getFcountry().hashCode());
        result = prime * result + ((getFsupplygrade() == null) ? 0 : getFsupplygrade().hashCode());
        result = prime * result + ((getFsupplyname() == null) ? 0 : getFsupplyname().hashCode());
        result = prime * result + ((getFsupplyid() == null) ? 0 : getFsupplyid().hashCode());
        result = prime * result + ((getFregionname() == null) ? 0 : getFregionname().hashCode());
        result = prime * result + ((getFsupplygradename() == null) ? 0 : getFsupplygradename().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", fregionid=").append(fregionid);
        sb.append(", fcountry=").append(fcountry);
        sb.append(", fsupplygrade=").append(fsupplygrade);
        sb.append(", fsupplyname=").append(fsupplyname);
        sb.append(", fsupplyid=").append(fsupplyid);
        sb.append(", fregionname=").append(fregionname);
        sb.append(", fsupplygradename=").append(fsupplygradename);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}